//
//  BaseTableViewController.swift
//  新浪微博
//
//  Created by apple on 15/7/28.
//  Copyright © 2015年 Adam. All rights reserved.
//

import UIKit

class BaseTableViewController: UITableViewController {

    var userLogon=false
    var visitView:VisitorLoginView?
    override func viewDidLoad() {
        userLogon ? super.loadView() : setUpVistorView()

    }
    private func setUpVistorView(){
      visitView=VisitorLoginView()
        view=visitView
       navigationItem.leftBarButtonItem=UIBarButtonItem(title: "注册", style: UIBarButtonItemStyle.Plain, target: self, action: nil)
    navigationItem.rightBarButtonItem=UIBarButtonItem(title: "登录", style: UIBarButtonItemStyle.Plain, target: nil, action: nil)
    }

}
